package com.zhangliuliu.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("rat")
public class RatsBean {
    /**
     * 鼠害实体
     */
 @TableId(value = "pk_ratid",type = IdType.AUTO)
    private int ratId;
 @TableField("rat_name")
    private String ratName;
 @TableField("rat_food")
    private String ratFood;
 @TableField("rat_breed")
    //繁殖
    private String ratBreed;
    //天敌
    @TableField("rat_enemy")
    private String ratEnemy;
    @TableField("rat_img")
    private String ratPicture;
    //防治措施
    @TableField("rat_control")
    private String ratControl;
    //主要危害
    @TableField("rat_harm")
    private String ratHarm;

    public RatsBean() {
    }

    public RatsBean(String ratName, String ratFood, String ratBreed, String ratEnemy, String ratPicture, String ratControl, String ratHarm) {
        this.ratName = ratName;
        this.ratFood = ratFood;
        this.ratBreed = ratBreed;
        this.ratEnemy = ratEnemy;
        this.ratPicture = ratPicture;
        this.ratControl = ratControl;
        this.ratHarm = ratHarm;
    }

    public int getRatId() {
        return ratId;
    }

    public void setRatId(int ratId) {
        this.ratId = ratId;
    }

    public String getRatName() {
        return ratName;
    }

    public void setRatName(String ratName) {
        this.ratName = ratName;
    }

    public String getRatFood() {
        return ratFood;
    }

    public void setRatFood(String ratFood) {
        this.ratFood = ratFood;
    }

    public String getRatBreed() {
        return ratBreed;
    }

    public void setRatBreed(String ratBreed) {
        this.ratBreed = ratBreed;
    }

    public String getRatEnemy() {
        return ratEnemy;
    }

    public void setRatEnemy(String ratEnemy) {
        this.ratEnemy = ratEnemy;
    }

    public String getRatPicture() {
        return ratPicture;
    }

    public void setRatPicture(String ratPicture) {
        this.ratPicture = ratPicture;
    }

    public String getRatControl() {
        return ratControl;
    }

    public void setRatControl(String ratControl) {
        this.ratControl = ratControl;
    }

    public String getRatHarm() {
        return ratHarm;
    }

    public void setRatHarm(String ratHarm) {
        this.ratHarm = ratHarm;
    }

    @Override
    public String toString() {
        return "RatsBean{" +
                "ratId=" + ratId +
                ", ratName='" + ratName + '\'' +
                ", ratFood='" + ratFood + '\'' +
                ", ratBreed='" + ratBreed + '\'' +
                ", ratEnemy='" + ratEnemy + '\'' +
                ", ratPicture='" + ratPicture + '\'' +
                ", ratControl='" + ratControl + '\'' +
                ", ratHarm='" + ratHarm + '\'' +
                '}';
    }
}
